package com.zyy.meetObject;

import java.lang.reflect.Array;
import java.util.Arrays;

public class MyArrayYTest {
    public static void main(String[] args){
        MyArray myArray = new MyArray();
        int arr[] = new int[]{12,15,1,56,0,77,21};
        int max = myArray.getMax(arr);
        System.out.println("最大值：" + max);

        int min = myArray.getMin(arr);
        System.out.println("最小值：" + min );

        int sum = myArray.getSum(arr);
        System.out.println("总值：" + sum );

        double avg = myArray.getAvg(arr);
        System.out.println("平均值:" + avg);
        myArray.getArray(arr);
        myArray.reversal(arr);
        myArray.getSort(arr);
        myArray.findnum(arr,5);
    }
}
